package com.xukehong.demo.util;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * @Author: xkh
 * @Date: 2019/8/1 15:09
 * @Version 1.0
 * 时间工具
 */
public class DateUtil {

    /**
     * 获取系统时间
     * @return
     */
    public String getSysTime(){
        String dateTime = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
        return dateTime;
    }
}
